package com.xzx.shop_front_api.service;

import com.xzx.shop_front_api.entity.Order;

import java.text.ParseException;

public interface OrderService {
    public int insertOrder(Order order);

    //支付完成，更新订单状态，支付状态，支付时间，支付方式
    public int updateOrderStatusPayStatus(String outTradeNo,
                                          int payStatus,
                                          int payType,
                                          String gmt_payment,
                                          int status,
                                          String tradeNo) throws ParseException;

    Order selectOrderByOrderSn(String outTradeNo);
}
